<? $this->headTitle($this->translate('Cart') . ' | ' . $this->shopName . ' - ' . $this->translate($this->shopTitle)); ?>
<? $this->headMeta()->appendName('keywords', mb_strtolower($this->translate('online store') . ', ' . $this->translate($this->shopCity), 'utf8') . ', ' . mb_strtolower($this->translate('Cart'), 'utf8')) ?>
<? $this->headMeta()->appendName('description', $this->translate('Cart') . '. ' . $this->translate($this->shopTitle) . '. ' . $this->translate('Sale, shipment, warranty.')); ?>
<? $this->headLink()->appendStylesheet('/css/cart.css') ?>
<div class="breadcrumb">
    <a href="/<?= $this->language ?>"><?= $this->translate('Start') ?></a>
    &raquo;
    <a href="/<?= $this->language ?><?= $this->currentUrl ?>"><?= $this->translate('Cart') ?></a>
</div>
<h1><?= $this->translate("Cart") ?></h1>
<? if ($this->products): ?>
    <table class="products">
        <tr>
            <th/>
            <th><?= $this->translate("Product") ?></th>
            <th><?= $this->translate("Category") ?></th>
            <th><?= $this->translate("Price") ?></th>
            <th><?= $this->translate("Count") ?></th>
        </tr>
        <? foreach ($this->products as $product): ?>
            <tr>
                <td>
                    <img src="<?= $product->thumb_pic_url ?>"/>
                </td>
                <td>
                    <a href="/<?= $this->language ?>/product/<?= $product->id ?>">
                        <?= $product->manufacturer_name ?>
                        <?= $product->name ?>
                        (<?= $product->mpn ?>)
                    </a>
                </td>
                <td>
                    <a href="/<?= $this->language ?>/catalog/<?= $product->category_id ?>">
                        <?= $product->category_name ?>
                    </a>
                </td>
                <td>
                    <span class="price"><?= $product->price ?>&nbsp;<?= $this->translate('grn') ?></span>
                </td>
                <td class="count">
                    <?= $product->count ?>
                </td>
            </tr>
        <? endforeach; ?>
        <tr>
            <td class="total" colspan="3">
                <?= $this->translate("Total") ?>
            </td>
            <td>
                <span class="price"><?= $this->total ?>&nbsp;<?= $this->translate('grn') ?></span>
            </td>
            <td class="count">
                <?= $this->totalCount ?>
            </td>
        </tr>
        <tr>
            <td class="buy" colspan="5">
                <a class="button" href="/<?= $this->language ?>/order">
                    <?= $this->translate('Order now') ?>
                </a>
                <a class="button" href="<?= $this->referrerUrl ?>">
                    <?= $this->translate('Order later') ?>
                </a>
            </td>
        </tr>
    </table>
<? else: ?>
    <div class="empty-cart">
        <?= $this->translate("Until the empty"); ?>
    </div>
<? endif; ?>

